/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.scrumpmt.domain;

import java.util.Date;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author agumpg
 */
@Entity
@Table(name = "COMENTARIO")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Comentario.findAll", query = "SELECT c FROM Comentario c"),
    @NamedQuery(name = "Comentario.findById", query = "SELECT c FROM Comentario c WHERE c.id = :id"),
    @NamedQuery(name = "Comentario.findByDes", query = "SELECT c FROM Comentario c WHERE c.des = :des"),
    @NamedQuery(name = "Comentario.findByFec", query = "SELECT c FROM Comentario c WHERE c.fec = :fec"),
    @NamedQuery(name = "Comentario.findByIdColaboradorFk", query = "SELECT c FROM Comentario c WHERE c.idColaboradorFk = :idColaboradorFk")})
public class Comentario extends BaseEntity {
    @Column(name = "des", nullable=false)
    private String des;
    @Column(name = "fec", nullable=false)
    @Temporal(TemporalType.DATE)
    private Date fec;
    @Column(name = "id_colaborador_fk", nullable=false)
    private String idColaboradorFk;
    @JoinColumn(name = "id_tarea_fk", referencedColumnName = "id")
    @ManyToOne(optional = false)
    private Tarea idTareaFk;

    public Comentario() {
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public Date getFec() {
        return fec;
    }

    public void setFec(Date fec) {
        this.fec = fec;
    }

    public String getIdColaboradorFk() {
        return idColaboradorFk;
    }

    public void setIdColaboradorFk(String idColaboradorFk) {
        this.idColaboradorFk = idColaboradorFk;
    }

    public Tarea getIdTareaFk() {
        return idTareaFk;
    }

    public void setIdTareaFk(Tarea idTareaFk) {
        this.idTareaFk = idTareaFk;
    }

}
